import service from "../utils/request";

export const getSysOperationRecordList = (query) => {
  return service({
    url: "/operation/get_operations",
    method: "get",
    params: query,
  });
};

export const deleteSysOperationRecord = (id) => {
  return service({
    url: `/operation/${id}/delete_operation`,
    method: "delete",
  });
};

export const deleteSysOperationRecordByIds = (data) => {
  return service({
    url: "/operation/delete_operations",
    method: "post",
    data,
  });
};
